<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>mini-aster - A simple URL shortner</title>
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="ajitabh pandey" />
<meta name="keywords" content="mini-aster, simple, url shortener, codeigniter"
<meta name="description" content="mini-aster, a simple url shortener based on codeigniter" />


<style type="text/css">

html, body {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
 background-color: #fff;
 margin: 40px;
 font-family: Lucida Grande, Verdana, Sans-serif;
 font-size: 14px;
 color: #4F5155;
}

a {
 color: #003399;
 background-color: transparent;
 font-weight: normal;
}
/*
h1 {
 color: #444444;
 background-color: transparent;
 font-size: 1.5em;
 font-weight: bold;
 margin: 24px 0 2px 0;
 padding: 5px 0 6px 0;
}*/

code {
 font-family: Monaco, Verdana, Sans-serif;
 font-size: 12px;
 background-color: #f9f9f9;
 border: 1px solid #D0D0D0;
 color: #002166;
 display: block;
 margin: 14px 0 14px 0;
 padding: 12px 10px 12px 10px;
}

fieldset {
    margin: 1.5em 0 0 0;
    padding: 0;
    border: 2px solid #990066;
}

legend {
    margin-left: 1em;
    color: #444444;
    font-size: 1.5em;
    font-weight: bold;
}

fieldset ol {
    padding: 1em 1em 0 1em;
    list-style: none;
}

fieldset li {
    padding-bottom: 1em;
}

fieldset.submit {
    border-style: none;
}

label {
    display: block;
    font-size: 1.5em;
}

input {
    background: #FFFFFF;
    font-size: 1.5em;
    color: #33CC33;
    border: 1px solid #a0a0a0;
    padding: 1px 2px 2px 2px;
}

#head {
	font-size: large;
	border-bottom: 1px solid #D0D0D0;
	color: #444444;
	background-color: transparent;
}

em.formerr {
	color: #FF0000;
}
</style>
</head>
<body>

<div id="head">
	<h1>mini-aster<h1>
</div>
<div id="stats">
	<p><?php echo "Performed " . $num_redirects. " redirects to ". $num_urls. " urls.";?></p>
</div>
<?php
	//echo validation_errors();
	echo form_open('encode');
	echo form_fieldset('Shorten your URL');
?>
<ol>
	<li>
	<?php
		if($this->session->flashdata('message')) {
			echo $this->session->flashdata('message');
		}
	?>
	</li>
	<li>
	<?php 
		echo form_error('tf_inurl');
		echo form_label('long url', 'url', array('name'=>'lbl_url','id'=>'lbl_url'));
		echo form_input(array('name'=>'tf_inurl', 'id'=>'tf_inurl', 'value'=>set_value('tf_inurl')));
	?>
	</li>
	<li>
	<?php
		echo form_error('tf_keyword');
		echo form_label('optional keyword', 'user_keyword', array('name'=>'lbl_keyword','id'=>'lbl_keyword'));
		echo form_input(array('name'=>'tf_keyword', 'id'=>'tf_keyword', 'value'=>set_value('tf_keyword'))); 
	?>
	</li>
	<li>
	(leave this field blank to auto-generate a keyword.)
	</li>
</ol>
<?php echo form_fieldset_close();?>
<?php
	$subfs_attributes = array('class' => 'submit');
	echo form_fieldset('', $subfs_attributes);
	echo form_submit(array('name'=>'sb_shorten', 'id'=>'sb_shorten', 'value'=>'Shorten', 'class'=>'btn'));
	echo form_fieldset_close();
?>
<?php echo form_close(); ?>

<p>Copyright &copy; 2010 <a href="http://ajitabhpandey.info/" target="_blank">Ajitabh Pandey</a> | Powered by <a href="http://mini-aster.googlecode.com/" target="_blank"><img src="/images/mini-aster_icon.png" alt="mini-aster logo" /></a><br />Page rendered in {elapsed_time} seconds and used {memory_usage} memory.</p>

</body>
</html>
